From d5a22fa12fa982a6cffc79123fbc834fcfbe0d38 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 24 Apr 2008 14:33:42 +0100 Subject: [PATCH] vmx: Fix address of EPT identity-map pagetable that is passed from the domain builder down to the hypervisor. Signed-off-by: Keir Fraser --- tools/libxc/xc_hvm_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index ae3178b0e1..30ac5b4951 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -298,7 +298,7 @@ static int setup_guest(int xc_handle, _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_PSE); munmap(ident_pt, PAGE_SIZE); xc_set_hvm_param(xc_handle, dom, HVM_PARAM_IDENT_PT, - special_page_nr + SPECIALPAGE_IDENT_PT); + (special_page_nr + SPECIALPAGE_IDENT_PT) << PAGE_SHIFT); /* Insert JMP instruction at address 0x0 to reach entry point. */ entry_eip = elf_uval(&elf, elf.ehdr, e_entry); -- 2.30.2